package com.itheima.dao.impl;

import com.itheima.dao.BookDao;
import com.itheima.dao.UserDao;
import com.itheima.service.impl.UserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class UserDaoImpl implements UserDao {
    @Autowired
    private UserServiceImpl userService;

    @Autowired
    private UserDao userDao;

    @Value("999")
    private int A;
    @Autowired
    private BookDao bookDao;

    @Value("张三")
    private String name;

    public void save() { System.out.println("user dao running..."+name+A);

    }
}
